home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 22
/
freelog 22.iso
/
Prog
/
Djgpp
/
GPC2952B.ZIP
/
doc
/
gpc
/
docdemos
/
schemaexoticdemo.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
2001-02-09
|
262 b
|
17 lines
program SchemaExoticDemo;
type
ColorType = (Red, Green, Blue);
ColoredInteger (Color : ColorType) = Integer;
var
Foo : ColoredInteger (Green);
begin
Foo := 7;
if Foo.Color = red then
Inc (Foo, 2)
else
Foo := Foo div 3
end.